
import java.util.Arrays;
import java.util.HashSet;

public class StringToCharArray {

	public static void main(String[] args) {

/*

String[] pets = {"Fido","Zeus","Bin"};

int petsLength = pets.length;

int rand1 = (int) (Math.random() * petsLength);
//int rand1 = (int) (Math.random() * oneLength);

String phrase = pets[rand1] + "" + " is a dog";
//String phrase = wordListOne[rand1] + "" + wordListTwo[rand2] + "" + wordListThree[rand3];

System.out.println("We know " + phrase);
}

}


        String s1 = "The capital of Tennessee is Nashville.";
        //char[] chars = s1.toCharArray();  
        char[] text = new char[s1.length()];
          
        //loop through chars array and print out values separated with a space  
        for(int i = 0; i < s1.length(); i++){
        	s1[i] = ' ';
            System.out.print(chars[i] + " ");  
        }  
    }  
}

		/*String s = "The capital of Tennessee is Nashville."; 
		int start = 10; 
		int end = 14; 
		char buf[] = new char[end - start]; 
		s.getChars(start, end, buf, 0); 
		System.out.println(buf); 
		} 
		}
	*/	
		String str = "Hello how are you";
		HashSet<Character> set = new HashSet<Character>();    

		for (int i=0; i < str.length(); i++) {
			
			if(str.charAt(i) != ' ') 
			{
		    char c = str.toLowerCase().charAt(i);
		    //set.add(c);
		    			
		}

		System.out.println(set.toString());
			

	}
	}
}